
export  const resetMenuKeys = (tag: any) => {
    let selectKeys: string[] = [];
    let openKeys: string[] = []
    if(tag.matched){
      const selectKey = tag.name;
      const matches = tag.matched.filter((item: any)=> item.name !== selectKey);
      openKeys = matches.map((key: any)=>key.name);
      selectKeys.push(selectKey);
    }
    return {
      selectKey: selectKeys,
      openKey: openKeys,
    }
  }
